package com.xiyan.blog.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiyan.blog.entity.Blog;
import com.xiyan.blog.mapper.BlogMapper;
import com.xiyan.blog.service.IBlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BlogServiceImpl extends ServiceImpl<BlogMapper, Blog> implements IBlogService {

    @Autowired
    private BlogMapper blogMapper;

    @Override
    public List<Blog> findByTagId(String userId, String tagId) {

        return blogMapper.findByTagId(userId, tagId);
    }
}
